package com.aaa.service.impl;

import com.aaa.service.BookShopService;
import com.aaa.service.Carshier;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年11月14日19:04
 */
@Service
public class CarshierImpl implements Carshier {

    @Autowired
    private BookShopService bookShopService;

    public void buy(List<String> isbns, String username) {
        for (String isbn : isbns) {
            bookShopService.purchase(isbn,username);
        }
    }
}
